<?php
//gwBBCode's version
$gwbbcode_version = '1.8.3.1';

function define_or_not($name, $value) {
   if (!defined($name)) {
      define($name, $value);
   }
}

//DB paths
define_or_not('SKILLS_PATH_1', GWBBCODE_ROOT.'/skill_db_1.php');
define_or_not('SKILLS_PATH_2', GWBBCODE_ROOT.'/skill_db_2.php');
define_or_not('SKILLNAMES_PATH', GWBBCODE_ROOT.'/skillname_db.php');
define_or_not('SKILLABBRS_PATH', GWBBCODE_ROOT.'/abbr_db.php');
define_or_not('PICKUP_PATH', GWBBCODE_ROOT.'/pickup_db.php');
define_or_not('OLD_PICKUP_PATH', GWBBCODE_ROOT.'/pickup.txt');
define_or_not('HASHES_PATH', GWBBCODE_ROOT.'/hashes_db.php');
define_or_not('RANDOM_BUILD_PATH', GWBBCODE_ROOT.'/random_build_db.php');

//Include paths
define_or_not('CONSTANTS_PATH', GWBBCODE_ROOT.'/constants.inc.php');
define_or_not('CONFIG_PATH', GWBBCODE_ROOT.'/config.inc.php');
define_or_not('DEFAULT_CONFIG_PATH', GWBBCODE_ROOT.'/config_default.inc.php');
define_or_not('OLD_CONFIG_PATH', GWBBCODE_ROOT.'/config.php');
define_or_not('RENAMED_CONFIG_PATH', GWBBCODE_ROOT.'/config.old.php');
define_or_not('TEMPLATE_PATH', GWBBCODE_ROOT.'/gwbbcode.tpl');

//URLs
define_or_not('GWBB_ROOT_URL', preg_replace('/^\\.\\//', '', GWBBCODE_ROOT));
define_or_not('GWBB_DYNAMIC_URL', GWBB_ROOT_URL);
define_or_not('GWBB_STATIC_URL', GWBB_ROOT_URL);

//Template paths
define_or_not('GWBB_STATIC_HEADER', GWBBCODE_ROOT.'/static_header.tpl');
define_or_not('GWBB_STATIC_BODY', GWBBCODE_ROOT.'/static_body.tpl');
define_or_not('GWBB_DYNAMIC', GWBBCODE_ROOT.'/dynamic.tpl');
?>